/**
          ****************************************锟斤拷锟斤拷图片******************************
          */   
          
   
           var uploaderPicture = new plupload.Uploader({
           
            runtimes : 'html5,flash,silverlight',//上传方式
			flash_swf_url : './js/Moxie.swf',
			
			silverlight_xap_url : './js/Moxie.xap',
	        
	        url : '../fileupload',//文件上传的处理接口
            
            max_file_size : '1gb',//100b, 10kb, 10mb, 1gb
            chunk_size : '1mb',//文件的最大大小
            unique_names : true,//是否分块上传
            browse_button :'setimg', 
            filters : [ {
                title : 'Image files',
                extensions : 'jpg,gif,png'
            }],
			
            init : {
				FilesAdded: function(up, files) {
					uploaderPicture.start();
					return false;
				},
                FileUploaded : function(up, file, info) {//上传成功后的方法
           
                	
                	 var response = $.parseJSON(info.response);
                	 if(response.status){
                     /*alert(response.fileUrl);*/
                     $(".headimg").attr("src",response.fileUrl);
                	 }else{
                		
                	 }
                },
                UploadComplete : function( uploader,files ) {
                	
                },
                UploadProgress : function( uploader,file ) {//上传进度
                	$("#progress").html("锟较达拷锟斤拷锟轿拷锟�"+ file.percent + "%");
                	console.log( file.percent );
                	
                }
            }
            
        });
           uploaderPicture.init();
           
           
           
           
           
           
           
           /**
            ****************************************职员批量添加******************************
            */   
            

           var uploaderPicture3 = new plupload.Uploader({
           
           runtimes : 'html5,flash,silverlight',//锟斤拷锟斤拷锟斤拷锟叫伙拷锟斤拷锟斤拷锟结按锟斤拷锟矫碉拷顺锟津，匡拷锟斤拷选锟斤拷锟街碉拷锟絟tml5,gears,flash,silverlight,browserplus,html
			flash_swf_url : 'js/Moxie.swf',
			
			silverlight_xap_url : 'js/Moxie.xap',
	        
	        url : '../XSLupload',//锟较达拷锟侥硷拷路锟斤拷
            
            max_file_size : '3gb',//100b, 10kb, 10mb, 1gb
            chunk_size : '1mb',//锟街匡拷锟叫★拷锟叫★拷锟斤拷锟斤拷锟斤拷小锟侥诧拷锟街匡拷
            unique_names : true,//锟斤拷锟轿ㄒ伙拷募锟斤拷锟�
            browse_button :'XSLS', 
         

            init : {
				FilesAdded: function(up, files) {
					uploaderPicture3.start();
					return false;
				},
                FileUploaded : function(up, file, info) {//上传完成
                	 var response = $.parseJSON(info.response);
                	if(response.status){
                		alert("上传完成！！！");
                	}
                	
                },
                UploadComplete : function( uploader,files ) {
                	
                },
                UploadProgress : function( uploader,file ) {
                	
                	console.log( file.percent );
                	
                }
            }
            
        });
           uploaderPicture3.init();
            
           
          